package edu.xjnu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author David
 * @since 2023-03-18
 */
@Getter
@Setter
@TableName("user")
@ApiModel(value = "UserEntity对象", description = "")
public class UserEntity extends Model<UserEntity> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("username")
    private String username;

    @TableField("image")
    private String image;

    @TableField("signature")
    private String signature;

    @TableField("nickname")
    private String nickname;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
